import React from "react";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import Login from "./pages/login/login.jsx";
import Admin from "./pages/admin/admin.jsx";
import Home from './pages/home/home'
import Good from './pages/good/good'
import NotFound from './pages/notFound'

function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path='/' element={<Admin />}>
            <Route index element={<Home />}></Route>
            <Route path='/good' element={<Good />}></Route>
        </Route>
        <Route path='/login' element={<Login />}></Route>
        <Route path='*' element={<NotFound />}></Route>
      </Routes>
    </BrowserRouter>
  );
}

export default App
